package com.mingqi.hw.machinetest;

import java.util.Scanner;

public class HJ106 {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        char[] ch = str.toCharArray();
        int length = ch.length;
        for(int i=0;i<length/2;i++){
            char temp = ch[i];
            ch[i] = ch[length-1-i];
            ch[length-1-i]=temp;
        }
        System.out.println(new String(ch));
    }
}
